import { createRouter, createWebHashHistory } from 'vue-router'
import vue from 'vue'
const home = () =>
    import ('../views/house/home')
const category = () =>
    import ('../views/class/category')
const car = () =>
    import ('../views/shopcar/Cart')
const mine = () =>
    import ('../views/my/mine')
const Detail = () =>
    import ('../views/detail/Detail')
const routes = [{
        path: '/./',
        redirect: '/./home'
    }, {
        path: '/./home',
        component: home
    },
    {
        path: '/./category',
        component: category
    },
    {
        path: '/./car',
        component: car
    },

    {
        path: '/./mine',
        component: mine
    },
    {
        path: '/./detail/:iid',
        component: Detail
    }
]
const router = createRouter({
    history: createWebHashHistory(),
    routes,
    mode: 'history',
})

export default router